﻿using System.Web.Optimization;

namespace SportClubMvc.App_Start
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                "~/Scripts/jquery.unobtrusive*",
                "~/Scripts/jquery.validate*"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                "~/Scripts/jquery-ui-*"));
            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include("~/Scripts/modernizr-*"));
            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));
            //bundles.Add(new StyleBundle("~/Content/wysiwygcss").Include("~/Content/jquery.wysiwyg.css"));

            //jquery.wysiwyg.css

            bundles.Add(new ScriptBundle("~/bundles/sportsclub").Include(
                "~/Scripts/sportsclub.js"));

            bundles.Add(new ScriptBundle("~/bundles/editor").Include(
                "~/Scripts/textEditor/jquery.wysiwyg.js"));
            
            
            BundleTable.EnableOptimizations = true;
        }
    }
}